<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>异常报告编辑</h2>
    </div>
    <div class="panel panel-default">
        <div class="panel-body">
            <div class="row">
                <div class="col-md-10">
                    <h4 style="font-size: 16px;">
                        成品名称：
                        <mark>{$data.product}</mark>
                        成品规格：
                        <mark>{$data.spec}</mark>
                        需要分拣：
                        <mark>{$data.plancnt}</mark>
                        已经完成：
                        <mark>{$data.realitycnt}</mark>
                    </h4>
                </div>
            </div>
        </div>
    </div>

    <form action="{:U()}" method="post" enctype="multipart/form-data" class="form-horizontal">
        <input type="hidden" name="id" value="{$id}">
        <div class="form-item">
            <label class="item-label">异常原因</label>
            <div class="controls">
                <input type="text" class="text input-large" name="report" value="{$data.report}">
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn  ajax-post" id="submit" type="submit" target-form="form-horizontal">提 交</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);
                    return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        $(function () {
            $('.time').datetimepicker({
                format: 'Y-m-d H:i:s',
                language: "zh-CN",
                minView: 2,
                autoclose: true,
                step:30
            });
        });

        highlight_subnav('{:U('Sort/planindex')}');
    </script>
</block>